/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.heathrowapi.dto;

import java.io.Serializable;

/**
 *
 * @author Ufonzak
 */
public class StewardDTO implements Serializable
{
    private Long id;
    
    private String firstName;
    
    private String lastName;
    
    private Long personalId;

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public Long getPersonalId() {
        return personalId;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public void setPersonalId(Long personalId) {
        this.personalId = personalId;
    }    
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof StewardDTO)) {
            return false;
        }
        StewardDTO other = (StewardDTO) object;
        if (this.id == null  || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "StewardDTO{" + "id=" + id + ", firstName=" + firstName + ", lastName=" + lastName + ", personalId=" + personalId + '}';
    }    
    
}
